package com.zzg.controller;

import com.zzg.entity.Consigner;
import com.zzg.note.AdviceAnnotation;
import com.zzg.service.ConsignerZzSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author zzg
 * @version 1.0.0
 * @ClassName：ConsignerController
 * @Description: 发货人控制台
 * @date 2021/7/9
 **/
@Controller
public class ConsignerZzController {
    @Autowired
    private ConsignerZzSerivce ConsignerZzSerivceImpl;
    /**
     * 发货人数据展示
     * @author zzg
     * @date 2021/6/18 16:42
     * @params *@params
     * @return
     */
    @AdviceAnnotation(name = "查询所有发货人数据")
    @RequestMapping(value = "/Consigner",produces = "application/json;charset=utf-8")
    @ResponseBody
    public Map<String, Object> consigner(Integer page, Integer limit, Consigner Consigner){
        return ConsignerZzSerivceImpl.selectConsigner(page,limit,Consigner);
    }


}
